{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-block">
            <input id="c-goods_name" lay-verify="required" class=" layui-input" name="row[goods_name]" type="text" value="{$data.goods_name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商品编号</label>
        <div class="layui-input-block">
            <input id="c-number" lay-verify="required" disabled class=" layui-input" name="row[number]" type="text" value="{$data.number}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">进货单价</label>
        <div class="layui-input-block">
            <input id="c-stock_price" lay-verify="required" class=" layui-input" step="0.01" name="row[stock_price]" type="number" value="{$data.stock_price}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">出货单价</label>
        <div class="layui-input-block">
            <input id="c-qutbound_price" lay-verify="required" class=" layui-input" step="0.01" name="row[qutbound_price]" type="number" value="{$data.qutbound_price}">
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}